package com.norteksoft.projectname.module1.model;

/**
 * @hibernate.class 
 * @author huhc
 *
 */
public class Attachment {
	private Long id;
	private byte content[];
	private Person person;
	
	/**
	 * @hibernate.property type="org.springframework.orm.hibernate3.support.BlobByteArrayType"
	 * @return
	 */
	public byte[] getContent() {
		return content;
	}
	public void setContent(byte[] content) {
		this.content = content;
	}
	
	/**
	 * @hibernate.id generator-class="native"
	 * @return
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * @hibernate.one-to-one
	 * 		cascade="none"
	 * @return
	 */
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	
}
